package com.zrs.gmall;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

//exclude = DataSourceAutoConfiguration.**class** **排除数据库链接jar表示当前项目{service-item} 不参与数据库查询**
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)//取消数据源自动配置

//注册到nacos可省略
@EnableDiscoveryClient

//不是同包的话 (basePackages = "cn.atguigu.gmall") //开启Feign扫描 扫描Feign接口产生代理对象
@EnableFeignClients
public class ItemApp {
    public static void main(String[] args) {
        SpringApplication.run(ItemApp.class, args);
    }
}